#include<stdio.h>
int main()
{
  int c;
  FILE *fp;
  fp=fopen("text_blank","r");
  while((c=getc(fp))!=EOF)
  {
    if(c==' ')
    {
      while((c=getc(fp))==' ')
      {
       continue;
      }
      printf(" ");
   }
  
   else
    {
      printf("%c",c);
    }
  }
  return 0;
}
 
